import http from "@/api/http";

export const getQrGenerate = () => {
  return http.get("/auth/qr/generate");
};

export const getQrStatus = (loginKey: string) => {
  return http.get(`/auth/qr/status?loginKey=${loginKey}`);
};

// 确认扫码登录
export const confirmQrLogin = (loginKey: string, userId: string) => {
  return http.post(`/auth/qr/confirm?loginKey=${loginKey}&userId=${userId}`);
};
